package com.huawei.bitfun.inspections;

import com.huawei.bitfun.visitors.OptVisitor;
import com.intellij.codeInspection.LocalInspectionTool;
import com.intellij.codeInspection.ProblemsHolder;
import com.intellij.psi.PsiElementVisitor;
import org.jetbrains.annotations.NotNull;

public class LoopVectorizeInspection extends LocalInspectionTool {
    private static final String OPT_PASS = "loop-vectorize";

    @Override
    public @NotNull PsiElementVisitor buildVisitor(@NotNull ProblemsHolder holder, boolean isOnTheFly) {
        return new OptVisitor(holder, OPT_PASS);
    }

    @Override
    public boolean isEnabledByDefault() {
        return false;
    }
}